//
//  SecondViewController.h
//  XDCommonApp
//
//  Created by XD-XY on 2/12/14.
//  Copyright (c) 2014 XD-XY. All rights reserved.
//  艺术家Tabbar

#import "XDBaseViewController.h"
#import "DetailforArtistVC.h"
#import "ASIHTTPRequest.h"
#import "XDSearchView.h"
#import "MJRefresh.h"

@interface SecondViewController : XDBaseViewController<ASIHTTPRequestDelegate,UITableViewDelegate,UITableViewDataSource,XDSearchViewDelegate,MJRefreshBaseViewDelegate,UIScrollViewDelegate>
{
    UIButton * artistBtn; //艺术家Button
    UIButton * galleryBtn; //画廊Button
    BOOL isArtist;
    int artistTotalCount; //艺术家个数
    int galleryTotalCount; //画廊个数
    
    XDSearchView * searchView;
    
    MJRefreshHeaderView * header;
    MJRefreshFooterView * footer;
    int page;   //艺术家page
    int page2;  //画廊page
    BOOL isHeaderRefresh;
    BOOL isHaveMoreData; //判断艺术家是否有更多数据
    BOOL isHaveMoreData2; //判断画廊是否有更多数据
    BOOL hiddenSarch;  
    
}

//@property (nonatomic,strong)XDSearchView * searchBarView;
@property (nonatomic,strong) UITableView *artistTableView;
@property (nonatomic,strong) UITableView * searchTableView; //搜索tableView
@property (nonatomic,strong)NSMutableArray * artistArray;  //艺术家数组
@property (nonatomic,strong)NSMutableArray * galleryArray; //画廊数组
@property (nonatomic,strong)UIView * searchBgview;
@property (nonatomic,strong)NSMutableArray * searchDataArray;
@end
